﻿<!--addnew/edit form-->
<form name="formEditor">

<TABLE class="table_comm" cellSpacing=0 cellPadding=0 width="100%" border=0>
<!-- 页面内容标签：如“新增记录”、“修改记录” -->
<tr>
<td>
<div id=tabs>
    <ul>
        <li onclick="changeLiStyle(this);" id="tabsl">
            <a  
                onmouseover="javascript:window.status='';return true;" 
                onmouseout="javascript:window.status='';return true;" 
                href='#' 
                onclick='JavaScript:return false;'>
                <span id="formTitleEditor">修改信息</span>
            </a>
        </li>
    </ul>
    <div id='hline'></div>
</div>
</tr>
</td>
</table>

<FIELDSET><LEGEND>费用发放记录信息</LEGEND>
<TABLE class="table_comm" cellSpacing=0 cellPadding=0 width="100%" border=0>

    <tr>
        <td class="th20 required">户主</td>
        <td class="td20left">
            <input type="text" name="master_name" value="">
        </td>
    </tr>
    <tr>
        <td class="td20left" colspan="2"></td>
    </tr>
    <!-- <tr>
        <td class="th20 required">费用发放状态</td>
        <td class="td20left">
            <input type="radio" name="fee_status" value="0" checked>未发放<br>
            <input type="radio" name="fee_status" value="1">已发放
        </td>
    </tr> -->
    <input type="hidden" name="fee_status" value="1">
    <tr>
        <td class="th20">人口数量</td>
        <td class="td20left">
            <input type="text" name="population" value="" onkeydown="changeMyFocusByKey('','house_number')">
        </td>
    </tr>
    <!-- <tr>
        <td class="th20">原房间数</td>
        <td class="td20left">
            <input type="text" name="house_number" value="" onkeydown="changeMyFocusByKey('population','banjia_fee')">
        </td>
    </tr> -->
    <input type="hidden" name="house_number" value="">
    <tr>
        <td class="th20 required">搬家费</td>
        <td class="td20left">
            <input type="text" name="banjia_fee" value="" onblur="evalTotal();" onkeydown="changeMyFocusByKey('house_number','touqin_fee')">
        </td>
    </tr>
    <tr>
        <td class="th20 required">投亲费</td>
        <td class="td20left">
            

            每月投亲费用:<!-- <input id="month_price" name="month_price" type="text" size="10" maxlength="64" value="700">(单位:(元/月)) -->
            <select name="month_price" id="month_price">
                <option value="600">600</option>
                <option value="700">700</option>
                <option value="800">800</option>
            </select>
            单位:(元/月))
            <br>
            投亲开始时间:<input id="begin_date" name="begin_date" type="text" size="10" maxlength="25" value="" readonly>
                        <img class="tool" src="${def:context}/images/calendar.gif" title="打开日历.." onclick="calendarOpen('begin_date')" onblur="evalEnddate()"> YYYY-MM-DD<br>
            投亲结束时间:<input id="end_date" name="end_date" type="text" size="10" maxlength="25" value="" readonly>
                        <img class="tool" src="${def:context}/images/calendar.gif" title="打开日历.." onclick="calendarOpen('end_date')"> YYYY-MM-DD<br>

            <br><input type="button" class="cmd" value="计算月份数" onclick="calMonthCount();">投亲月份数:<input id="month_count" name="month_count" type="text" size="10" maxlength="64" value="" readonly><!-- onblur="evalEnddate()" -->
            
            投亲费用:<input type="text" name="touqin_fee" value="" onblur="evalTotal();" onkeydown="changeMyFocusByKey('banjia_fee','suqian_fee')" readonly>
        </td>
    </tr>


        </td>
    </tr>
    <tr>
        <td class="th20 required">速迁费</td>
        <td class="td20left">
            <input type="text" name="suqian_fee" value="" onblur="evalTotal();" onkeydown="changeMyFocusByKey('touqin_fee','other_fee')">
        </td>
    </tr>
    <tr>
        <td class="th20">其他费用</td>
        <td class="td20left">
            <input type="text" name="other_fee" value="" onblur="evalTotal();" onkeydown="changeMyFocusByKey('suqian_fee','receive_user')">
        </td>
    </tr>
    <tr>
        <td class="th20">合计</td>
        <td class="td20left">
            <input type="text" name="total_fee" value="" readonly>
        </td>
    </tr>
    <tr>
        <td class="th20">领取人</td>
        <td class="td20left">
            <input type="text" name="receive_user" value="" onkeydown="changeMyFocusByKey('other_fee','remark')">
        </td>
    </tr>
    <tr>
        <td class="th20">备注</td>
        <td class="td20left">
            <input type="text" name="remark" value="" onkeydown="changeMyFocusByKey('receive_user','')">
        </td>
    </tr>
</TABLE>
</FIELDSET>


<FIELDSET><LEGEND>操作信息</LEGEND>
<TABLE class=table_comm cellSpacing=0 cellPadding=0 width="100%" border=0>
        <col width="80%">
        <col width="20%">
        <!--buttons-->
        <tr>
            <td align="center" colspan=1>
                <input type="button" class="cmd" value="保存" onclick="return save()" id="submitBtn">
                <input type="button" class="cmd" value="返回" onclick="javascript:document.getElementById('divEditor').style.display = 'none';document.getElementById('divFilter').style.display = '';document.getElementById('response').style.display = '';" >
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input id="deleteCommand" type="button" class="cmd" style="display:none" value="删除"  onclick="deleteRecord(tuid.value)">
            </td>
            <td class="th20 required" colspan=3>
                特别标注为必填信息.
            </td>
        </tr>
    
</table>
</FIELDSET>

    <!--tuid是否为空,决定了form的保存方法为编辑保存,还是新增保存-->
    <input type="hidden" id="tuid" name="tuid" default="0" value="">

</form>